package p3.code;

public class ObjectRunOut {

    private int number = 99;

    public ObjectRunOut() {
        new InnerClass();
    }

    private class InnerClass {
        public InnerClass(){
            //这里调用的是还没有初始化完全的类，this溢出了，不安全
            System.out.println(ObjectRunOut.this.number);
        }
    }

    public static void main(String[] args){
        new ObjectRunOut();
    }

}
